package com.freemalll.common.core.web.domain;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.freemalll.common.core.annotation.Excel;

/**
 * 审计字段基类
 * 包含创建人、修改人、组织信息、版本号等审计字段
 * 
 * @author freemalll
 */
public class AuditEntity implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 创建人id */
    @TableField("create_id")
    @Excel(name = "创建人id")
    private String createId;

    /** 创建人名称 */
    @TableField("create_name")
    @Excel(name = "创建人名称")
    private String createName;

    /** 创建时间 */
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss.SSS")
    private Date createTime;

    /** 所属组织编码 */
    @TableField("org_code")
    @Excel(name = "所属组织编码")
    private String orgCode;

    /** 所属组织id */
    @TableField("org_id")
    @Excel(name = "所属组织id")
    private String orgId;

    /** 修改者id */
    @TableField("update_id")
    @Excel(name = "修改者id")
    private String updateId;

    /** 修改人名称 */
    @TableField("update_name")
    @Excel(name = "修改人名称")
    private String updateName;

    /** 修改时间 */
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss.SSS")
    private Date updateTime;

    /** 版本号 */
    @TableField("version")
    @Excel(name = "版本号", cellType = com.freemalll.common.core.annotation.Excel.ColumnType.NUMERIC)
    private Long version;

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getUpdateId() {
        return updateId;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId;
    }

    public String getUpdateName() {
        return updateName;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }
}